package com.company.cloud.art.modules.mgr.controller;

import com.company.cloud.art.modules.api.request.ActSignUpQueryReq;
import com.company.cloud.art.modules.api.response.ActSignUp;
import com.company.cloud.art.modules.api.response.ActSignUpQueryResp;
import com.company.cloud.art.modules.base.entity.ActivitySignUpInfo;
import com.company.cloud.art.modules.mgr.service.ActActivityMgrService;
import com.company.cloud.common.auth.annotation.Authc;
import com.company.cloud.common.bean.BaseResult;
import com.company.cloud.common.log.annotation.SysLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 活动报名管理
 */
@Authc
@RestController
@RequestMapping("/mgr/art/activity2signup")
@Api(tags="ART_Mgr_活动报名管理")
public class ArtActSignUpMgrController {

    @Autowired
    private ActActivityMgrService actActivityMgrService;

    @PostMapping("/query")
    @ApiOperation(value="活动报名查询", response= ActSignUp.class)
    public BaseResult query(@RequestBody ActSignUpQueryReq params) {
        ActSignUpQueryResp data= actActivityMgrService.actSignUpQuery(params);
        return BaseResult.ok(data);
    }

    @GetMapping("/get")
    @ApiOperation(value="活动报名详情",response = ActSignUp.class)
    public BaseResult get(@RequestParam("id")Integer id) {
        ActSignUp data= actActivityMgrService.actSignUpInfo(id);
        return BaseResult.ok(data);
    }




}
